"""
换硬币
"""
coin = eval(input())
five = coin // 5
count = 0
for i in range(five, 0, -1):
    money = coin - 5 * i
    total = i
    two = money // 2
    for j in range(two, 0, -1):
        money = coin - 5 * i
        if money <= j * 2: continue
        money -= j * 2
        total = i + j + money
        count += 1
        print(f'fen5:{i}, fen2:{j}, fen1:{money}, total:{total}')
print(f'count = {count}')
